<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>	
<!DOCTYPE html>
<html>
<head>
	<link rel="stylesheet" href="../jquery/jquery.mobile-1.0a4.1.min.css" />
	 <link rel="stylesheet" href="../css/site_style.css"/>
	<script type="text/javascript" src="../jquery/jquery-1.5.2.min.js"></script>
	<script type="text/javascript" src="../jqueryui/jquery-ui-1.8.11.custom.min.js"></script>
	<script type="text/javascript" src="../jquery/jquery.mobile-1.0a4.1.min.js"></script>
	<script  src="site_delete.js"></script>
	<script charset="utf-8" src="http://s.map.qq.com/api/js/beta/v2.1/QQMapAPI.js"></script>	
	<style media="screen" type="text/css">
		#map {
			width: 100%;
			height: 240px;
			}
	</style>
	
	
</head>
<body  onload="init()">
<div data-role="page">

	<div id="header" data-role="header" data-theme="b">
		<s:property value="site.category.categoryName"/>删除页面
			 <s:if test="#session.login_user.category!=null">
	        	<a  onclick="location='listByMemberId.action'" data-icon="back" data-iconpos="notext" data-role="button" style="margin: 2px;float: right;" >添加</a> 
			 </s:if>
	 		<s:else>
	        	<a onclick="location='list.action?site.category.categoryNo=<s:property value="site.category.categoryNo"/>'"  data-role="button" data-icon="back" data-iconpos="notext" style="float: right;"  >回退</a> 
	     	 </s:else>
	
		</div><!-- /header -->

	<div data-role="content">

		<form action="delete.action" method="post" >

			<div data-role="fieldcontain">
	        	 <input type="hidden" name="siteNo"  id="siteNo" value='<s:property value="site.siteNo"/>'  readonly="readonly" />
			</div>
			<div data-role="fieldcontain">
				<label for="siteName" >名称:</label>
	        	 <input type="text" name="siteName" id="siteName" value='<s:property value="site.siteName"/>' readonly="readonly"  />
	             <div id="info_name" ></div>
			</div>
			<div data-role="fieldcontain">
				<label for="siteDesc">描述:</label>
				<textarea cols="20" rows="8" name="siteDesc" id="siteDesc" readonly="readonly"><s:property value="site.siteDesc"/></textarea>

			</div>
			
			
		   <div data-role="fieldcontain">
				<label for="categoryNo" >级别:</label>
	        	 <input type="text"  id="categoryNo" value='<s:property value="site.category.categoryName"/>' readonly="readonly"  />
	        	 <input type="hidden" name="categoryNo"  value='<s:property value="site.category.categoryNo"/>'  />
			</div>
	      		

			<div data-role="fieldcontain">
				<label for="city">城市:</label>
			 	<input type="text" name="city" id="city" value='<s:property value="site.city"/>' readonly="readonly" />
			</div>
			<div data-role="fieldcontain">
				<label for="address">地址:</label>
			 	<input type="text" name="address" id="address" value='<s:property value="site.address"/>' readonly="readonly" />
			</div>
			<div data-role="fieldcontain">
				<label for="contactName">联系人:</label>

			 	<input type="text" name="contactName" id="contactName" value='<s:property value="site.contactName"/>' readonly="readonly" />
			</div>

			<div data-role="fieldcontain">
				<label for="tel">联系电话:</label>
				<input type="text" name="tel" id="tel" value='<s:property value="site.tel"/>' readonly="readonly" />
			</div>

			<div data-role="fieldcontain">
				<label for="fax">传真:</label>
				<input type="text" name="fax" id="fax" value='<s:property value="site.fax"/>' readonly="readonly" />
			</div>
			
			<div data-role="fieldcontain">
				<label for="mobile">移动电话:</label>
				<input type="text" name="mobile" id="mobile" value='<s:property value="site.mobile"/>' readonly="readonly" />
			</div>
			<div data-role="fieldcontain">
				<label for="email">EMail:</label>
				<input type="text" name="email" id="email" value='<s:property value="site.email"/>' readonly="readonly" />
			</div>
			<div data-role="fieldcontain">
				<label for="webSite">网址:</label>
				<input type="text" name="webSite" id="webSite" value='<s:property value="site.webSite"/>' readonly="readonly" />
			</div>
			<div id="map" draggable="false"  ></div>
			<div data-role="fieldcontain">
				<label for="lng">经度:</label>
				<input type="text" name="lng" id="lng" value='<s:property value="site.lng"/>' readonly="readonly" />
				
			</div>
			<div data-role="fieldcontain">
				<label for="lat">纬度:</label>
				<input type="text" name="lat" id="lat" value='<s:property value="site.lat"/>' readonly="readonly" />
			
			</div>
			
			
			<div data-role="fieldcontain">
				<fieldset data-role="controlgroup" data-type="horizontal" >
			     		<legend>图片:</legend>
			     		<img src="../upload/<s:property value="site.photoName"/>" width="80px" height="80px" />
			     		<input type="hidden" name="photoName" value="<s:property value="site.photoName"/>"/>
			    </fieldset>
			</div>
			
			
			<div data-role="fieldcontain">
				<fieldset data-role="controlgroup" data-type="horizontal">
			     	<legend>是否显示:</legend>
			     	<s:if test='site.showStatus=="N"'>
			     		<input type="radio" name="showStatus" id="showStatus_y" value="Y" disabled="disabled" />
			         	<label for="showStatus_y">是</label>
			         	<input type="radio" name="showStatus" id="showStatus_n" value="N" checked="checked" disabled="disabled"/>
			         	<label for="showStatus_n">否</label>
			     	</s:if>
					<s:else> 
					  <input type="radio" name="showStatus" id="showStatus_y" value="Y" checked="checked"  disabled="disabled" />
			         	<label for="showStatus_y">是</label>
			         	<input type="radio" name="showStatus" id="showStatus_n" value="N" disabled="disabled" />
			         	<label for="showStatus_n">否</label>
					</s:else> 
			    </fieldset>
			</div>
			
			
		<div data-role="fieldcontain">
			<fieldset class="ui-grid-a">
			    <s:if test="#session.login_user.category!=null">
	        	<div class="ui-block-a"><button type="button" onclick="location='listByMemberId.action'" data-theme="d">关闭</button></div>
			 	</s:if>
	 			<s:else>
	        	<div class="ui-block-a"><button type="button" onclick="location='list.action?site.category.categoryNo=<s:property value="site.category.categoryNo"/>'" data-theme="d">关闭</button></div>
	     	 	</s:else>
				
				<div class="ui-block-b"><button type="submit" id="submit"  data-theme="a">删除</button></div>
	   		 </fieldset>
	   
		</div>
	</form>

	</div><!-- /content -->
</div><!-- /page -->

</body>
</html>
